package edu.arizona.sista.learn.model.displaying;

import edu.arizona.sista.learn.model.Interval;

/**
 * Each instance of Event is a dynamic situation in which the state of the world changes;
 * each instance is something one would say "happens".
 */
public class Event extends Thing{
	private static int LAST_ASSIGNED_ID = 0;

	public Interval _time;

	public Event(int id, String label, Interval time) {
		super(id, label);
		_time = time;
	}
	
	public Event(String label, Interval time){
		this(LAST_ASSIGNED_ID + 1, label, time);
		LAST_ASSIGNED_ID++;
	}
	
	public Event(Interval time){
		this("e", time);
	}
}